package com.aaa.hospital.ManagementEnd.mapper;

import com.aaa.hospital.Client.pojo.Visitingcard;
import com.aaa.hospital.ManagementEnd.pojo.User;
import com.aaa.hospital.ManagementEnd.util.PayDB;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
@Mapper
@Repository
public interface UserDao {
    List<User>  queryAll();
    User    user_ById(Integer uid);
    Boolean  user_insert(User user);
    Boolean  user_del(Integer uid);
    Boolean  user_update(User user);
    //通过身份证号获取uid
    User    user_Byidcard(String idcard);

//
   boolean user_add(User user); //注册添加
    User  user_phone(String phone); //手機號唯一


//
    List<User>  limitAll(@Param("uid") Integer uid,@Param("uname") String uname);
    //cyx

    Boolean insertCard(User user);
    //
    Visitingcard queryByIdCard(@Param("uname") String uname, @Param("idcard") String idcard);
    Integer queryUid(@Param("uname") String uname,@Param("idcard") String idcard);
    List<PayDB> selectAll();
    List<PayDB> queryByIdCardVisid(@Param("visid") Integer visid,@Param("idcard") String idcard);
    User queryUserAll(@Param("visid")Integer visid);
}
